<template>
  <div class="user">
    <h1>欢迎来到用户</h1>
    <span>芜湖，用户的世界向你打开</span>
    <h3>{{fullName}}</h3>
    <h3>{{$route.params.userID}}</h3>
  </div>
</template>

<script>

export default {
  name: 'User',
  data() {
    return {
      
    }
  },
  methods:{
    
  },
  computed:{
    fullName() {
      /* 
        console.log(this.$route);
        this.$route 动态路由中存储的值 
      */
      return this.$route.params.userID
    }
  }
}
</script>